package top.wettis.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.wettis.chat.pojo.DO.TodayPunch;

import java.util.List;

/**
 * <p>
 * 每日打卡 Mapper 接口
 * </p>
 *
 * @author wettis
 * @since 2023-03-25
 */
@Mapper
public interface TodayPunchMapper extends BaseMapper<TodayPunch> {
    String getBefore(@Param("date") String date ,@Param("id") Integer id);


    void deleteLastMonth(@Param("month") int month,@Param("id") Integer id);

    List<String> selectDate(@Param("month") int month,@Param("id") Integer id);

    int Count(@Param("month") int month,@Param("id") int id);

}
